package com.lcj.service.impl;

import com.lcj.dao.CompanyRecruitInfoDao;
import com.lcj.model.CompanyRecruitInfo;
import com.lcj.service.CompanyRecruitInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyRecruitInfoServiceImpl implements CompanyRecruitInfoService {

    @Autowired
    private CompanyRecruitInfoDao companyRecruitInfoDao;
    @Override
    public int save(CompanyRecruitInfo companyRecruitInfo) {
        return companyRecruitInfoDao.insert(companyRecruitInfo);
    }

    @Override
    public int update(String recruitUrl, String contactPerson, String phone, String email, String address) {
        return companyRecruitInfoDao.update(recruitUrl, contactPerson, phone, email, address);
    }

    @Override
    public int saveCshr(CompanyRecruitInfo companyRecruitInfo) {
        return companyRecruitInfoDao.insertCshr(companyRecruitInfo);
    }

    @Override
    public int saveZpt(CompanyRecruitInfo companyRecruitInfo) {
        return companyRecruitInfoDao.saveZpt(companyRecruitInfo);
    }

    @Override
    public int updateZpt(String recruitUrl, String lowerEdu, String industryName, String persons, String recruitDate) {
        return companyRecruitInfoDao.updateZpt(recruitUrl,lowerEdu,industryName,persons,recruitDate);
    }

    @Override
    public List<String> selectUrl(String source) {
        return companyRecruitInfoDao.selectUrl(source);
    }

    @Override
    public int saveDxrc(CompanyRecruitInfo companyRecruitInfo) {
        return companyRecruitInfoDao.savDxrc(companyRecruitInfo);
    }

    @Override
    public int updateDxrc(String recruitUrl, String workPlace, String contactPerson, String phone, String industryName, String persons, String address) {
        return companyRecruitInfoDao.updateDxrc(recruitUrl, workPlace, contactPerson, phone, industryName, persons, address);
    }
}